import { getPageSheetNode } from '@/utils/helpers'

export default function (editor) {
  // 删除当前页
  editor.ui.registry.addToggleMenuItem('contextmenu_blankpage_remove', {
    text: '删除当前页',
    onAction: () => {
      editor.dom.remove(getPageSheetNode(editor))
      editor.fire('pageRemove')
    }
  })

  // console.debug('---右键菜单: 空白页---')
}
